<!DOCTYPE html>
	<body><div class="container">
		<div class="title">
			<div class="title_text">砍单词 WordsDestructor<span style="font-size:15px;float:right;color:blue;padding-top:20px">{$username}</span></div>
		</div>
		
		<div class="menu">
			<div class=menu_title id=list_all_wordlist>词单</div>
			<div class=menu_title id=look_up_dictionary>词典</div>
			<div class=menu_title id=change_password>更改密码</div>
            <eq name="authority" value="1">
			<div class=menu_title>管理员</div>
                <div class=menu_entry id=libButton>词库</div>
                <div class=menu_entry id=list_all_user>用户</div>
                <div class=menu_entry id=list_all_log>日志</div>
            </eq>
			<div class=menu_title><a href=<?php echo U("User/unlogin"); ?>>退出</a></div>
		</div>
		
		<div class="main">
			<div id="main_text">
			<div id=repo>
			</div>
			</div>
		</div>
		
		<div class="clear"></div>
		
		<div class="info">
			<div class="info_text">
				All rights reserved.
			</div>
			
		</div>
	</div>
<script type=text/javascript>
$("#list_all_user").click(function(){
		$("#repo").text("载入用户列表中...请稍候");
		$.get("{:U('Admin-Admin/listAllUsers');}", function(str){
			$("#repo").html(str);
		});
	});
$("#libButton").click(function(){
		$("#repo").text("载入词库中...请稍候");
		$.get("{:U('Home-Wordlibrary/show');}", function(str){
			$("#repo").html(str);
		});
	});
$("#list_all_wordlist").click(function(){
		$("#repo").text("载入词单中...请稍候");
		$.get("{:U('Home-Wordlist/listWordListsByUser');}", function(str){
			$("#repo").html(str);
		});
});
$("#look_up_dictionary").click(function(){
		$("#repo").text("载入词典中...请稍后");
		$.get("{:U('Dictionary/show');}",function(str){
			$("#repo").html(str);
		});
});
$("#change_password").click(function(){
		$("#repo").text("载入中...请稍候");
		$.get("{:U('User/showChangePwd');}", function(str){
			$("#repo").html(str);
		});
});
$("#list_all_log").click(function(){
	$("#repo").text("载入日志中...请稍候");
	$.get("{:U('Admin-Admin/listLog');}", function(str){
		$("#repo").html(str);
	});
});
</script>
